﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="seach.aspx.cs" Inherits="seach" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <link href="css/seach.css" rel="stylesheet" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
   
    <asp:DataList ID="DataList1" OnItemDataBound="DataList1_ItemDataBound" OnItemCommand="DataList1_ItemCommand" runat="server" BackColor="White" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1" Width="775px">
        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
        <FooterTemplate>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Label ID="LabCurrentPage" runat="server" Text=""></asp:Label>
                /<asp:Label ID="LabPageCount" runat="server" Text=""></asp:Label>
                <asp:LinkButton ID="LnkbtnFirst" runat="server" CommandName="first">首页</asp:LinkButton>
                <asp:LinkButton ID="LnkbtnFront" runat="server" CommandName="pre">上一页</asp:LinkButton>
                <asp:LinkButton ID="LnkbtnNext" runat="server" CommandName="next">下一页</asp:LinkButton>
                <asp:LinkButton ID="LnkbtnLast" runat="server" CommandName="last">最后一页</asp:LinkButton>
                跳转至<asp:TextBox ID="txtPage" runat="server"></asp:TextBox>
                <asp:Button ID="Button1" runat="server" Text="GO" CommandName="search"/>
        </FooterTemplate>
        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
        <HeaderTemplate>
            <table class="t1" style="width:100%;height:30px;text-align:center;">
                <tr>
                        <td>编号</td>
                        <td>类型</td>
                        <td>标题</td>
                        <td>内容</td>
                        <td>联系人</td>
                        <td>电话</td>
               </tr>
            </table>
        </HeaderTemplate>
        <ItemStyle BackColor="#DEDFDE" ForeColor="Black" />
        <ItemTemplate>
            <table class="seach">           
                <tr style="text-align:center">
                    <td style="width:129px;"><%# Eval("id") %></td>
                    <td style="width:129px;"><%# Eval("type") %></td>
                    <td style="width:129px;"><%# Eval("title") %></td>
                    <td style="width:129px;"><%# Eval("info").ToString().Length>5?Eval("info").ToString().Substring(0,5)+"...":Eval("info").ToString()%></td>
                    <td style="width:129px;"><%# Eval("linkman") %></td>
                    <td style="width:129px;"><%# Eval("tel") %></td>
                </tr>   
            </table>
        </ItemTemplate>
        <SelectedItemStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
    </asp:DataList>

</asp:Content>

